home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch18 / rtrace / balls.scn < prev    next >
Text File  |  1993-09-03  |  2KB  |  94 lines

  1. ;
  2. ;  multiple colored balls over a plain
  3. ;  author: Barry T. Drake, Occidental College Computer Center
  4. ;  e-mail: bdrake@oxy.edu
  5. ;  date: 7/23/91
  6. ;  thanks-to: C. Regis Wilson, t_pascal@oxy.edu
  7. ;  modified: ajones, 072391, fixed the mirrored surface appearance
  8. ;            BTD, 072491, added colors and made it *big*
  9. ;  notes: 1) This ray file takes ~30,000 cpu seconds to trace on
  10. ;            a Sun 4/280 (a 10 Mips machine).
  11. ;         2) The idea for this came from a Sun .background that we ftpd
  12. ;            from someplace whose name we lost (sorry!).
  13. ;         3) Changing screen to 100 100 and depth to 2 decreases
  14. ;            trace time to 2000 cpu seconds on a 68030 (NeXT cube).
  15. ;         4) If you want better shadows of the pyramid, try decreasing
  16. ;            the reflectivity of surface.
  17. ;         5) I think this is a lot of fun.  Thanks, Craig!
  18.  
  19. eye -8 -20 6
  20. look 0 0 6
  21. up 0 0 1
  22. fov 30
  23. ;light extended -8 -10 20 mono 2.5 2.5 8
  24. light point -8 -10 20 mono 2.5
  25.  
  26. ;;surfaces
  27. #define mirror \
  28. surface 0.4 0.4 0.4 0.05 0.05 0.05 0.9 0.9 0.9 60 0.8
  29.  
  30. #define redmirror \
  31. surface 0.8 0.0 0.0 0.15 0.0 0.0 0.9 0.9 0.9 60 0.8
  32.  
  33. #define blumirror \
  34. surface 0.0 0.0 0.8 0.0 0.0 0.15 0.9 0.9 0.9 60 0.8
  35.  
  36. #define grnmirror \
  37. surface 0.0 0.8 0.0 0.0 0.15 0.0 0.9 0.9 0.9 60 0.8
  38.  
  39. #define whitesurf \
  40. surface 0.6 0.6 0.4 0.8 0.8 0.8 0.2 0.2 0.2 18 0.1
  41.  
  42. ;; plane
  43. quadrangle
  44.   marble scale 4 4 4
  45.   transform scale 1000
  46.   whitesurf
  47. data 1 1 0 -1 1 0 -1 -1 0 1 -1 0
  48.  
  49. ;; balls
  50. blumirror
  51. sphere 0 0.1 6 1
  52. sphere 1 -5 8 1
  53. sphere 2 0.1 4 1
  54. sphere 3 -5 6 1
  55. sphere 5 -1.6 4 1
  56. sphere 5 -5 4 1
  57. sphere 5 -8.4 4 1
  58. sphere 7 -5 8 1
  59. grnmirror
  60. sphere 0 -3.3 6 1
  61. sphere 2 -6.7 4 1
  62. sphere 3 -8.4 6 1
  63. sphere 4 -3.3 8 1
  64. sphere 5 -5 10 1
  65. sphere 9 -5 6 1
  66. mirror
  67. sphere -1 -11.8 4 1
  68. sphere -1 -5 4 1
  69. sphere -1 -8.4 4 1
  70. sphere -1 1.8 4 1
  71. sphere 0 -10.1 6 1
  72. sphere 0 -6.7 6 1
  73. sphere 0 15 11 10
  74. sphere 1 -1.6 8 1
  75. sphere 2 -10.1 4 1
  76. sphere 2 -3.3 4 1
  77. sphere 2 -6.7 10 1
  78. sphere 3 -1.6 6 1
  79. sphere 3 -5 12 1
  80. sphere 4 -6.7 8 1
  81. sphere 6 -3.3 6 1
  82. sphere 6 -6.7 6 1
  83. sphere 8 -3.3 4 1
  84. sphere 8 -6.7 4 1
  85. redmirror
  86. sphere -7.5 -1 1.001 1 ; this is the fallen ball
  87. sphere 1 -8.4 8 1
  88. sphere 11 -5 4 1
  89. sphere 2 -3.3 10 1
  90.